package com.server.sdcf;

public class ProcesaProxy implements com.server.sdcf.Procesa {
  private String _endpoint = null;
  private com.server.sdcf.Procesa procesa = null;
  
  public ProcesaProxy() {
    _initProcesaProxy();
  }
  
  public ProcesaProxy(String endpoint) {
    _endpoint = endpoint;
    _initProcesaProxy();
  }
  
  private void _initProcesaProxy() {
    try {
      procesa = (new com.server.sdcf.ProcesaServiceLocator()).getProcesa();
      if (procesa != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)procesa)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)procesa)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (procesa != null)
      ((javax.xml.rpc.Stub)procesa)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.server.sdcf.Procesa getProcesa() {
    if (procesa == null)
      _initProcesaProxy();
    return procesa;
  }
  
  public int procesando(java.lang.String es) throws java.rmi.RemoteException{
    if (procesa == null)
      _initProcesaProxy();
    return procesa.procesando(es);
  }
  
  
}